package ca.ets.osgi.composedservice;

import java.io.Serializable;


public abstract class EventAbs implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private Adresse adresse;
	private String nom;
	private String description;
	private String telephone;
	private int noID;
	private String startDate;
	private String endDate;
	
	public EventAbs(){}

	/**
	 * @return the adresse
	 */
	public Adresse getAdresse() {
		return adresse;
	}

	/**
	 * @param adresse the adresse to set
	 */
	public void setAdresse(Adresse adresse) {
		this.adresse = adresse;
	}

	/**
	 * @return the nom
	 */
	public String getNom() {
		return nom;
	}

	/**
	 * @param nom the nom to set
	 */
	public void setNom(String nom) {
		this.nom = nom;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return description;
	}

	/**
	 * @param description the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the telephone
	 */
	public String getTelephone() {
		return telephone;
	}

	/**
	 * @param telephone the telephone to set
	 */
	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	/**
	 * @return the noID
	 */
	public int getNoID() {
		return noID;
	}

	/**
	 * @param noID the noID to set
	 */
	public void setNoID(int noID) {
		this.noID = noID;
	}

	/**
	 * @return the startDate
	 */
	public String getStartDate() {
		return startDate;
	}

	/**
	 * @param startDate the startDate to set
	 */
	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}

	/**
	 * @return the endDate
	 */
	public String getEndDate() {
		return endDate;
	}

	/**
	 * @param endDate the endDate to set
	 */
	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}
	
	public String toString(){
		return this.getNom() + " , "+ this.getAdresse().getRue() + " " + this.getAdresse().getVille() + " " + this.getAdresse().getProvince() + " " + this.getAdresse().getCodePostal() +  " ,From " + this.getStartDate() + " To " + this.getEndDate();
		
	}
	
	

}
